<template>
	<div>
		<input  type="text" v-model="administrator"/>
		<Button @click="pass">解锁</Button>
	</div>
</template>

<script>
	export default{
		data(){
			return{
				administrator:''
			}
		},
		methods:{
			pass(){
				var pass = window.localStorage.getItem('pass')
				if(this.administrator == pass){
					this.$Message.success('登录成功')
				}else{
					this.$Message.error('登录失败')
				}
			}
		}
	}
</script>

<style>
</style>
